package com.jizhi.onework.service;

import com.jizhi.onework.dataobj.dto.UserDTO;
import com.jizhi.onework.dataobj.vo.UserVO;
import com.jizhi.onework.framework.model.ServiceResponse;

/**
 *
 * @author hzhang7
 */
public interface UserService {

    /**
     * 根据用户id查询用户信息
     *
     * @param userId
     * @return
     */
    ServiceResponse<UserVO> getUserById(Long userId);

    /**
     * 根据电话号码重组新用户信息
     *
     * @param username
     * @return
     */
    ServiceResponse<UserVO> selectUserByPhoneNumber(String username);

    /**
     * 用户注册
     *
     * @param userDTO
     * @return
     */
    ServiceResponse<UserVO> registerUser(UserDTO userDTO);
}
